<%--
    Document   : arealang
    Created on : Oct 25, 2011, 8:57:41 AM
    Author     : Venus
--%>

<%--
    Tham số hệ thống
language  areaname  order  status
action    arealang
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="java.util.*,Beans.ThamSoHT,Models.NgonNgu_Model,Models.ThamSoHT_Model"%>
<%
    int langid = (Integer) session.getAttribute("langid"); // ngôn ngữ hiện tại
    String dsts = " 'action', 'rightmsg', 'currencyexist', 'currencylang', 'currencyname', 'language', 'notice', 'order', 'symbols', 'rate' ";
    ThamSoHT[] mdsts = ThamSoHT_Model.DSThamSo(dsts, langid); // mảng chứa các tham số của trang này.

    String action = mdsts[0].getTenTS();
    String currencyexist = mdsts[1].getTenTS();
    String currencylang = mdsts[2].getTenTS();
    String currencyname = mdsts[3].getTenTS();
    String language = mdsts[4].getTenTS();
    String notice = mdsts[5].getTenTS();
    String order = mdsts[6].getTenTS(); 
    String rate = mdsts[7].getTenTS();
    String rightmsg = mdsts[8].getTenTS();
    String symbols = mdsts[9].getTenTS();

    String msgright = notice + "/" + rightmsg;
    String msg = notice + "/" + currencyexist;
    Vector v = (Vector) request.getAttribute("Detail");
%>

<div class="bloc" style="margin-top: 30px;">
    <div class="title">
        <%=currencylang %>
        
    </div>
    <div class="content">
        <table>
	<thead>
            <tr>
                <th style="width: 10%; padding-bottom: 5px;"><%=order%></th>
		<th style="width: 15%; padding-bottom: 5px;"><%=language%></th>
                <th style="width: 19%; padding-bottom: 5px;"><%=currencyname%></th>
                <th style="width: 15%; padding-bottom: 5px;"><%=symbols%></th>
                
                <th style="width: 15%; padding-bottom: 5px;"><%=action%></th>
            </tr>
	</thead>
        <tbody id="area">
            <%
                for(int i=0; i<v.size(); i++){
                    Beans.TienTe tt = (Beans.TienTe) v.elementAt(i);
            %>
                    <tr>
                        <td><%= i + 1 %></td>
                        <td><%= Models.NgonNgu_Model.TenNgonNgu(tt.getMaNN()) %></td>                        
                        <td><div id="tentte_<%= tt.getMaNN()%>"><%= tt.getTenTTe() %></div></td>
                        <td><p id="kyhieu_<%= tt.getMaNN()%>"><%= tt.getKyHieu() %></p></td>                        
                        <td>
                            <a href="#" name="<%= tt.getMaNN() %>"  id="<%= tt.getTenTTe()%>" shape="<%= tt.getKyHieu() %>"   onclick="Edit_tentt(this.name, this.id, this.shape)"><img style=" margin-right: 15px; width: 17px; margin-top: 2px;" alt="" src="../images/edit.png"></a>
                            <a href="#"   name="<%= tt.getMaTTe() %>" class="<%= tt.getMaNN()%>" lang="<%=msgright%>" onclick="Save_editTTe(this.name, this.className, this.lang)"><img style="width: 20px;" alt="" src="../images/save.png"></a>
                            <input type="hidden" id="currencyexist" value="<%=msg %>">
                        </td>
                        </tr>
            <%  }
            %>
        </tbody>
        </table>
    </div>
</div>

